package com.iqismart.shorturl.websocket;

import org.springframework.scheduling.annotation.Scheduled;

/**
 * @Description
 * @Auther sty
 * @createTime 2019-08-19 15:57
 */
//@Component
public class BeatSchedule {

    @Scheduled(fixedRate = 60000)
    public void b(){
        MyWebSocket.sendMessageToAll("active:"+System.currentTimeMillis());
    }
}
